DESCRIPTION = "print var"

python do_demo() {
   import bb
   build_arch = bb.data.getVar('BUILD_ARCH', d, 1)
   build_os = bb.data.getVar('BUILD_OS', d, 1)
   build_vendor = bb.data.getVar('BUILD_VENDOR', d, 1)
   build_sys = bb.data.getVar('BUILD_SYS', d, 1)
   build_prefix = bb.data.getVar('BUILD_PREFIX', d, 1)
   build_cc_arch = bb.data.getVar('BUILD_CC_ARCH', d, 1)
   build_exeext = bb.data.getVar('BUILD_EXEEXT', d, 1)
   print "=========================="
   print "build_arch  is %s" %build_arch
   print "build_os is %s" %build_os 
   print "build_vendor is %s" %build_vendor 
   print "build_sys is %s" %build_sys
   print "build_prefix  is %s" %build_prefix
   print "build_cc_arch  is %s" %build_cc_arch
   print "build_exeext  is %s" %build_exeext
   print "=========================="

   host_arch = bb.data.getVar('HOST_ARCH', d, 1)
   host_os = bb.data.getVar('HOST_OS', d, 1)
   host_vendor = bb.data.getVar('HOST_VENDOR', d, 1)
   host_sys = bb.data.getVar('HOST_SYS', d, 1)
   host_prefix = bb.data.getVar('HOST_PREFIX', d, 1)
   host_cc_arch = bb.data.getVar('HOST_CC_ARCH', d, 1)
   host_exeext = bb.data.getVar('HOST_EXEEXT', d, 1)
   print "-------------------------------"
   print "host_arch  is %s" %host_arch
   print "host_os  is %s" %host_os
   print "host_vendor  is %s" %host_vendor
   print "host_sys  is %s" %host_sys
   print "host_prefix  is %s" %host_prefix
   print "host_cc_arch  is %s" %host_cc_arch
   print "host_exeext  is %s" %host_exeext
   print "-------------------------------"
  

   print "+++++++++++++++++++++++++++++++++++"
   target_arch = bb.data.getVar('TARGET_ARCH', d, 1)
   target_os = bb.data.getVar('TARGET_OS', d, 1)
   target_vendor = bb.data.getVar('TARGET_VENDOR', d, 1)
   target_sys = bb.data.getVar('TARGET_SYS', d, 1)
   target_prefix = bb.data.getVar('TARGET_PREFIX', d, 1)
   target_cc_arch = bb.data.getVar('TARGET_CC_ARCH', d, 1)
   print "target_arch  is %s" %target_arch
   print "target_os  is %s" %target_os
   print "target_vendor is %s" %target_vendor
   print "target_sys  is %s" %target_sys
   print "target_prefix  is %s" %target_prefix
   print "target_cc_arch  is %s" %target_cc_arch
   print "+++++++++++++++++++++++++++++++++++"
}
addtask demo after do_fetch before do_unpack 
